<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@taglib uri="estateTag" prefix="estateTag" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>发布信息</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" href="../resource/css/global.css" type="text/css"></link>
	<link rel="stylesheet" type="text/css" href="../resource/css/easyui/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../resource/css/easyui/icon.css">
	<script type="text/javascript" src="../resource/js/jquery-1.4.2.js"></script>
	<script type="text/javascript" src="../resource/js/easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript"	src="../resource/js/easyui/easyui-lang-zh_CN.js"></script>
		<link rel="stylesheet" type="text/css" href="../resource/js/kindeditor/skins/default.css"></link>
			<script type="text/javascript" src="../resource/js/kindeditor/kindeditor.js"></script>
	<link rel="stylesheet" href="../resource/css/whole.css" type="text/css"></link>
	<link rel="stylesheet" href="../resource/css/global.css" type="text/css"></link>
	    <link rel="stylesheet" href="../resource/css/memberCenter/info.css" type="text/css"></link>
	    		<link rel="stylesheet" href="../resource/css/memberCenter/infowithoutmenu.css"
			type="text/css"></link>
	    <style type="text/css">
		.info_top{
			background-position: 0 0;
		}
	</style>
	<script type="text/javascript">
	  function  checkSave(){
	    var  title=$("#title").val();
	    if(title.length==0){
	       alert("请填写信息标题");
	       $("#title").focus();
	       return false;
	    }
	    if (!KE.util.isEmpty('content1')) $("#content1").val(KE.util.getData('content1'));
	  }
	
	</script>
  </head>
    <%
      String  brandId =request.getParameter("brandid");
    
    %>
  <body><estateTag:security></estateTag:security>
  	<center><jsp:include page="../index/top.jsp"></jsp:include></center>
      <div style="width: 100%;margin-top: 10p x;" align="center">
         <input id="menuCls" type="hidden" value="331">
			<table width="100%" class="layoutTab">
				<tr> 
					<!-- <td width="20%" align="left" valign="top"><jsp:include page="../menu.jsp"></jsp:include></td> -->
						<td valign="top" align="center">
									<form name="form" method="post"
										action="../shoperMessage/addOrUpdateMessage.shtml?"
										onsubmit="return checkSave()">
								<div class="position" align="left">
								 <label>
									您所在的位置：
								</label>
								商家后台管理&nbsp;&nbsp;--&gt;&gt;&nbsp;&nbsp;信息管理&nbsp;&nbsp;--&gt;&gt;&nbsp;&nbsp;信息维护</div>
					<br/><div class="info_top"></div>
					<div class="info_mid" align="center">
										<table width="960px" border="0" id="userinfo" cellpadding="1" cellspacing="1">
											<tr>
												<td align="center" colspan="2">
													<b>信息编辑 （<font color="red">*</font> 为必填项）</b>
													 <input type="hidden" name="shopId" value='${brandid}'/>
												</td>
											</tr>

											<tr>
												<td align="right" width="16%">
														<font color="red">*</font>标题:
 												</td>
												<td align="left">
														<input type="text" id="title" name="shopmessage.title" size="122" maxlength="50"
															value="${shopmessage.title}" />
												</td>
											</tr>
											 
											<tr>
												<td align="right">
														内容：
												</td>
												<td align="left" id="filter_ke">
														<textarea  cols="90" rows="20" id="content1"  name="shopmessage.content">
                      ${shopmessage.content}
                  </textarea>
												</td>
											</tr>

											<tr>
												<td colspan="2" align="center">
													 <input type="hidden" name="shopmessage.autding" value="">
													 <input type="hidden" name="shopmessage.deleteFlag" value="0">
                                                      <input type="hidden" name="shopmessage.id" value="${shopmessage.id}">
													<!-- 审核状态 未审核 -->

													<input type="submit" value="保存">
													&nbsp;
													<input type="button" value="返回" onclick="goback()">
												</td>
											</tr>
										</table>
										   </div>
			<div class="info_bottom">&nbsp;</div>
									</form>
								</td>
							</tr>
						</table>
		</div>          <input type="hidden"/>
						<div style="margin-top: 10px;">
		</div>    
		<script>
			KE.show({
				id : 'content1',
				loadStyleMode : false,
				resizeMode : 0,
				allowUpload:true, //允许上传图片 
				imageUploadJson:'<%=basePath%>/comutil/upload.shtml',    
				items : [
				'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
				'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
				'insertunorderedlist', '|','image']
			});
			$(function(){
	     $("#userinfo td").not($("#filter_ke td")).addClass("info_td1");
		 $("#userinfo tr").find("td:even").not($("#filter_ke td")).addClass("title_info2");
		 $("#userinfo tr").find("td:odd").not($("#filter_ke td")).css("padding-left","5px");
        });
        
        function goback()
          {
            history.back();
          }
		</script>
  	<center> <iframe src="../index/footer.html" width="970" height="120" frameborder="0" scrolling="no"></iframe> </center></body>
</html>
